{% extends layout %}
{% block stylesheet %}
  {{ super() }}
  <style>
    .zy-notify {
      position: absolute;
      top: 30px;
      left: 50%;
      transform: translateX(-50%);
    }
  </style>
{% endblock stylesheet %}
{% block main %}
  {{ super() }}
  <div class="hide">
    <input type="hidden" name="state" value="{{ state }}"/>
    <input type="hidden" name="msg" value="{{ msg }}"/>
  </div>
{% endblock main %}
{% block script %}
  {{ super() }}
  <script>
    const state = $('input[name="state"]').val();
    const msg = $('input[name="msg"]').val();
    $.message[state](msg);
  </script>
{% endblock script %}